package com.pxmeta.common.enums;

/**
 * @description 错误码枚举
 * @create 2022-01-27 14:34
 **/
public enum WebResultEnum {
    /**
     * 错误码枚举
     */
    SUCCESS(200,"成功"),
    ERROR(400,"失败"),
    LOGIN_ERROR(401,"登陆失败"),
    UN_LOGIN(403,"未登录"),
    EXCEPTION(500,"服务异常"),
    NO_DATA(100001,"数据不存在"),
    ERROR_PARAMS(100002,"参数错误"),
    NOT_REGISTER(100003,"用户未注册"),
    NOT_ENOUGH(100004,"余额不足"),
    ERROR_PERMISSION(100005,"没有权限"),
    SAVE_ERROR(100006,"保存失败"),
    UPDATE_ERROR(100007,"修改失败"),
    DELETE_ERROR(100008,"删除失败")
    ;


    private final Integer status;
    private final String msg;

    WebResultEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }


    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
